building rest api with node-red